using System.Data.Entity.ModelConfiguration;
using System.ComponentModel.DataAnnotations;

namespace DemoApp.DataAccess 
{
  public partial class GroupEntityConfiguration 
    : EntityTypeConfiguration<Group>
  {
    public GroupEntityConfiguration()
    {
      HasEntitySetName(@"Groups");
      Map(map => {
        map.ToTable(@"Groups");
      });
 
 

      HasMany(e => e.Users)
        .WithMany(e => e.Groups);
    }
  }
}
